﻿using Admin.NET.Core;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 考试学科
/// </summary>
[SugarTable("KaoshiXueke","考试学科")]
[SugarIndex("unique_kaoshiXueke_kaoshiId_xuekeId", nameof(KaoshiXueke.KaoshiId), OrderByType.Desc,nameof(KaoshiXueke.XuekeId), OrderByType.Desc,true)]
public class KaoshiXueke  : EntityBase
{
    /// <summary>
    /// 考试
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "KaoshiId", ColumnDescription = "考试")]
    public long KaoshiId { get; set; }
    
    /// <summary>
    /// 学科
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "XuekeId", ColumnDescription = "学科")]
    public long XuekeId { get; set; }

    /// <summary>
    /// 开始时间
    /// </summary>
    [SugarColumn(ColumnName = "StartShijian", ColumnDescription = "开始时间")]
    public DateTime? StartShijian { get; set; }

    /// <summary>
    /// 结束时间
    /// </summary>
    [SugarColumn(ColumnName = "EndShijian", ColumnDescription = "结束时间")]
    public DateTime? EndShijian { get; set; }

    /// <summary>
    /// 权重
    /// </summary>
    [SugarColumn(ColumnName = "Quanzhong", ColumnDescription = "权重")]
    public double? Quanzhong { get; set; }
    
    /// <summary>
    /// 总分
    /// </summary>
    [SugarColumn(ColumnName = "Zongfen", ColumnDescription = "总分")]
    public double? Zongfen { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    [SugarColumn(ColumnName = "Beizhu", ColumnDescription = "备注", Length = 50)]
    public string? Beizhu { get; set; }

    /// <summary>
    /// 序号
    /// </summary>
    [SugarColumn(ColumnName = "Index", ColumnDescription = "序号")]
    public int Index { get; set; }
}
